package com.changgou.common.exception;

import com.changgou.common.enums.HttpStateEnum;

/**
 * 自定义统一处理异常
 */
public class ChangGouException extends RuntimeException {

    private HttpStateEnum httpStateEnum;

    public ChangGouException(HttpStateEnum httpStateEnum){
        this.httpStateEnum = httpStateEnum;
    }

    public HttpStateEnum getHttpStateEnum() {
        return httpStateEnum;
    }

    public void setHttpStateEnum(HttpStateEnum httpStateEnum) {
        this.httpStateEnum = httpStateEnum;
    }

}
